/**
* 
* report system txt export 
* see <a href="{@docRoot}/Documentation/report.html"> for more information</a>
* 
* @author: Urunuela Richard
* @version 3.2
*/
package report;

import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.lang.reflect.Field;
import java.util.Vector;

public class txtReport implements output{
	PrintWriter out;
/**
 * 
 * @param o
 */
	public txtReport(String o) {
		  FileWriter outFile;
		try {
			outFile = new FileWriter(o);
			 this.out = new PrintWriter(outFile);
		} catch (IOException e) {
			e.printStackTrace();
		}
		 

	}
/**
 * Add new section   
 */
	public void appendSection(String string) {
		// TODO Auto-generated method stub
		out.println("-----------------------------");
		out.println(string);
		out.println("-----------------------------");
		
	}
/**
 * Close txt file 
 */
	public void close() {
		out.close();
		
	}
/**
 * add new line 
 */
	public void addligne(String string) {
		out.println(string);
		
	}

	/**
	 * end tab empty for txt file 
	 */
	public void EndTab(String string) {

		
	}
/**
 * begin tab empty for txt file 
 */
	public void beginTab(String string , int i) {
		out.println(string);
		// TODO Auto-generated method stub
		
	}
/**
 * add line in tabular 
 */
	public void add(Vector v2) {
		for (int i = 0; i <v2.size();i++){
			out.print(v2.get(i)+ " ");
			
			
			
		}
		out.print("\n");
		
	}
public void addImage(String name, int n) {
	// TODO Auto-generated method stub
	
}
	

	

}
